home *** CD-ROM | disk | FTP | other *** search
- ;
- ;this program clears the monochrome screen
- ;
- ; written by
- ; John O. Battle, N4OE
- ; c/s 73547,3346
- ; 732A Holcomb Bridge Road
- ; Norcross, GA 30071
- ; (404) 449-8536
- ;
- page 62,132
-
- cseg segment para public 'code'
- assume cs:cseg,ds:cseg,es:cseg,ss:cseg
- org 100h
-
- begin:
-
- cls2 proc near
- assume cs:cseg,ds:cseg
- mov bx,cs
- mov ds,bx
- call d2_cls
- int 20h
- cls2 endp
-
- d2_cls proc near
- ;
- ;This subroutine clears the monochrome screen.
- ;
- push ds
- push bx
- push cx
- push dx
- push di
- mov bx,0b000h ;monochrome display memory segment
- mov ds,bx
- mov dh,7
- mov dl,' '
- mov cx,2000
- mov di,0
- cl_1:
- mov ds:[di],dx
- inc di
- inc di
- loop cl_1
- pop di
- pop dx
- pop cx
- pop bx
- pop ds
- ret
-
- d2_cls endp
-
- cseg ends
- end begin